<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>个人信息</title>
	<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="/Public/admin/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="/Public/admin/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="/Public/admin/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="/Public/admin/css/personal.css" media="all">
</head>
<body>
<blockquote class="layui-elem-quote mylog-info-tit">
    <ul class="layui-tab-title">
        <a href="/admin/admin/add"><li class="layui-btn"><i class="layui-icon">&#xe60a;</i>添加用户</li></a>
    </ul>
</blockquote>
<div class="layui-form">
  <table class="layui-table">
    <colgroup>
      <col width="100">
      <col width="100">
      <col width="180">
      <col width="180">
      <col width="180">
      <col width="100">
      <col width="110">
      <col>
    </colgroup>
    <thead>
      <tr>
        <th>用户名</th>
        <th>昵称</th>
        <th>邮箱</th>
        <th>注册时间</th>
        <th>最后登陆时间</th>
        <th>是否激活</th>
        <th>角色组</th>
        <th>操作</th>
      </tr> 
    </thead>
    <tbody>
      <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$user): $mod = ($i % 2 );++$i;?><tr>
        <td><?php echo ($user['username']); ?></td>
        <td><?php echo ($user['name']); ?></td>
        <td><?php echo ($user['email']); ?></td>
        <td><?php echo (date("Y-m-d H:i:s",$user['reg_date'])); ?></td>
        <th>
          <?php if(($user['last_logdate'] == null)): ?>未登录
          <?php else: echo (date("Y-m-d H:i:s",$user['last_logdate'])); endif; ?>
        </th>
        <th><?php echo ($user['active']==1?'已激活':'未激活'); ?></th>
        <td><?php echo ($user['title']); ?></td>
        <th>
          <a href="/admin/auth/access_edit/id/<?php echo ($user['id']); ?>" class="layui-btn layui-btn-small layui-btn-normal">分配权限</a>
          <a href="/admin/admin/edit/id/<?php echo ($user['id']); ?>" class="layui-btn layui-btn-small">编辑</a>
          <a href="/admin/admin/delete/id/<?php echo ($user['id']); ?>" class="layui-btn layui-btn-small layui-btn-danger">删除</a>
        </th>
      </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
  </table>
</div>
<script type="text/javascript" src="/Public/admin/layui/layui.js"></script>
</body>
</html>